package com.study.ju.web;

import com.study.ju.service.AopTestService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @author 陈涛
 * @description:
 * @Date 2018/9/10 17:34
 */
@Controller
@RequestMapping("/aop")
public class AopTestController {
    private static final Logger logger = LoggerFactory.getLogger(AopTestController.class);
    @Autowired
    AopTestService aopTestService;
    @RequestMapping("/getMsg")
    @ResponseBody
    public String getMsg(HttpServletRequest request){
        aopTestService.testAround();
        return "sadasdas";
    }
}
